//
//  BranchListViewController.h
//  takeout
//
//  Created by Mac on 13-1-23.
//
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AudioToolbox/AudioToolbox.h>
#import "BaseViewController.h"
#import "SupplierManager.h"
#import <MessageUI/MessageUI.h>
#import <QuartzCore/QuartzCore.h>
#import "AppDelegate.h"
#import "FMDBSupplierManager.h"
#import "EGORefreshTableHeaderView.h"
#import "MBProgressHUD.h"
#import "FMDBAdManager.h"

@interface BranchListViewController : BaseViewController <UITableViewDelegate,UITableViewDataSource,EGORefreshTableHeaderDelegate,UIScrollViewDelegate,MBProgressHUDDelegate>{
    
}
@property (strong, nonatomic) SupplierManager *manager;
@property (strong, nonatomic) NSArray *suppliers;
@property int currentPage;
@property (strong, nonatomic) UITableView *tableViews;  //显示商家表
@property (strong, nonatomic) AppDelegate *appDelegate;
//    FMDBSupplierManager *fmdbSupplierManager;
@property (strong, nonatomic) EGORefreshTableHeaderView *_refreshHeaderView;
@property BOOL _reloading;
@property (strong, nonatomic) UIScrollView *scrollView;
@property int timeCount;
@property (strong, nonatomic) FMDBAdManager *fmdbAdManager;
@property NSInteger adsCount;

@property (strong, nonatomic) NSString *conditions;      //搜索条件
@property (strong, nonatomic) NSString *searchType;      //搜索类型：0：直接搜索  1：条件搜索
@property (strong, nonatomic) NSString *address;
@property (strong, nonatomic) NSString *isSelling;
@property (strong, nonatomic) NSString *tempSupId;              //点击拨打电话按钮后保存当前行商家ID(用于友盟统计)
@property (strong, nonatomic) NSString *tempSupName;            //点击拨打电话按钮后保存当前行商家Name(用于友盟统计)


@property (strong, nonatomic) NSArray *branchs;//分店
@property BOOL isTouched;

@end
